class CreateSeasonTables < ActiveRecord::Migration
  def self.up
    create_table :seasons do |t|
      t.string :name
      t.text   :description
      t.timestamps
    end

    create_table :events_seasons, :id => false do |t|
      t.integer :event_id
      t.integer :season_id
      t.timestamps
    end
  end

  def self.down
    begin drop_table :seasons rescue puts "Failed to drop: " + $! end
    begin drop_table :events_seasons rescue puts "Failed to drop: " + $! end
  end
end
